package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 代理发放记录对象 proxy_record
 *
 * @author ruoyi
 * @date 2025-05-15
 */
public class ProxyRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 分销商id
     */
    @Excel(name = "分销商id")
    private Long franchiserId;

    /**
     * 昵称
     */
    @Excel(name = "昵称")
    private String name;

    /**
     * 发放对象id
     */
    @Excel(name = "发放对象id")
    private Long targetId;

    /**
     * 发放对象昵称
     */
    @Excel(name = "发放对象昵称")
    private String targetName;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long account;

    /**
     * 发放时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发放时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /**
     * 发放数量
     */
    @Excel(name = "发放数量")
    private Long value;

    /**
     * 是否发放
     */
    @Excel(name = "是否发放")
    private Integer dealDone;

    /**
     * 发放时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发放时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date dealTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFranchiserId() {
        return franchiserId;
    }

    public void setFranchiserId(Long franchiserId) {
        this.franchiserId = franchiserId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getTargetId() {
        return targetId;
    }

    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }

    public String getTargetName() {
        return targetName;
    }

    public void setTargetName(String targetName) {
        this.targetName = targetName;
    }

    public Long getAccount() {
        return account;
    }

    public void setAccount(Long account) {
        this.account = account;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Long getValue() {
        return value;
    }

    public void setValue(Long value) {
        this.value = value;
    }

    public Integer getDealDone() {
        return dealDone;
    }

    public void setDealDone(Integer dealDone) {
        this.dealDone = dealDone;
    }

    public Date getDealTime() {
        return dealTime;
    }

    public void setDealTime(Date dealTime) {
        this.dealTime = dealTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("franchiserId", getFranchiserId())
                .append("name", getName())
                .append("targetId", getTargetId())
                .append("targetName", getTargetName())
                .append("account", getAccount())
                .append("time", getTime())
                .append("value", getValue())
                .append("dealDone", getDealDone())
                .append("dealTime", getDealTime())
                .toString();
    }
}
